package org.ethan.user.mapper;

import org.ethan.basic.mapper.BaseMapper;
import org.ethan.user.domain.LoginInfo;
import org.ethan.user.dto.LoginDto;
import org.springframework.stereotype.Repository;

@Repository
public interface LoginInfoMapper extends BaseMapper<LoginInfo> {


    LoginInfo findByUsernameAndType(LoginDto loginDto);

    /**
     * 根据userid查询登录信息，在微信登录时用到
     */
    LoginInfo findByUserId(Long user_id);
}
